package com.tyk.bookstore.back.user.model.query;

import com.tyk.bookstore.back.system.valid.annotation.PasswordValid;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class UpdatePasswordQuery {
    @Schema(description = "旧密码")
    @NotBlank
    @PasswordValid
    private String oldPassword;
    @Schema(description = "新密码")
    @NotBlank
    @PasswordValid
    private String newPassword;
}
